package com.validated.constraint;


import com.validated.annotation.NotNull;

/**
 * 非空约束校验
 *
 * @author Moo
 * @date 2023/05/11
 */
public class NotNullConstraint implements ConstraintValidator<NotNull,Object> {


    @Override
    public boolean isValid(NotNull annotation, Object object,Class<?> valueType) {
        return object != null;
    }

}
